.PHONY:all
all : clean  httpserver test_cgi output
httpserver:main.cc 
	g++ -o $@ $^ -std=c++11 -lpthread 

test_cgi:cgi/test_cgi.cc 
	g++ -o cgi/test_cgi cgi/test_cgi.cc -std=c++11

.PHONY:clean
clean:
	rm -f httpserver cgi/test_cgi 
	rm -rf output 

.PHONY:output
output:
	mkdir -p output 
	cp httpserver output 
	cp -rf wwwroot output 
	cp cgi/test_cgi output/wwwroot 
